package com.f.controller;

import com.f.bean.Dept;
import com.f.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
@Controller
public class DeptController {

    @Autowired
    private DeptService deptService;

    // 直接走数据库
    @RequestMapping("dept/getAll")
    List<Dept> getAll(){
        System.out.println("sss1");
        return deptService.getAll();
    }
}
